import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import getters from './getters'
import keepAliveNames from './modules/keepAliveNames'
import routesList from './modules/routesList'
import tagsViewRoutes from './modules/tagsViewRoutes'
import themeConfig from './modules/themeConfig'
import workflow from './modules/workflow'
import form from './modules/form'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user,
    keepAliveNames,
    routesList,
    tagsViewRoutes,
    themeConfig,
    workflow,
    form
  },
  getters
})

export default store
